package com.winit.deploy.bean;

/**
 * Created by wangjian on 16/8/11.
 */
public class WinitSpringBootInfo extends WinitInfo {

    private String serverPath;//工程所在目录
    private String backUpPath;//备份文件存放路径 带文件名
    private String backUpDir;//备份目录
    private String warName;

    /**
     * springboot工程推送的为tgz包  包内有jar包和配置文件
     * 向终端机推送tgz包时使用
     * 推送成功后,保存tgz包名称为 warName
     */
    private String jarPath;//beetle机器保存发布tgz包的路径,带文件名
    private String jarTempDir;//终端上临时保存tgz包的路径,不带文件名

    public WinitSpringBootInfo(String serverPath, String backUpPath, String warName, String serverIp, String sshPort
            , String jarPath, String jarTempDir, String userName, String keyFilePath, String projectName, String editionNum
            , String configPath, String envName, String areaName) {
        this.serverPath = serverPath;
        this.backUpPath = backUpPath;
        this.warName = warName;
        this.serverIp = serverIp;
        this.sshPort = sshPort;
        this.jarPath = jarPath;
        this.jarTempDir = jarTempDir;
        this.userName = userName;
        this.keyFilePath = keyFilePath;
        this.projectName = projectName;
        this.editionNum = editionNum;
        this.configPath = configPath;
        this.envName = envName;
        this.areaName = areaName;
    }

    public String getServerPath() {
        return serverPath;
    }

    public void setServerPath(String serverPath) {
        this.serverPath = serverPath;
    }

    public String getWarName() {
        return warName;
    }

    public void setWarName(String warName) {
        this.warName = warName;
    }

    public String getBackUpPath() {
        return backUpPath;
    }

    public void setBackUpPath(String backUpPath) {
        this.backUpPath = backUpPath;
    }

    public String getBackUpDir() {
        return backUpDir;
    }

    public void setBackUpDir(String backUpDir) {
        this.backUpDir = backUpDir;
    }

    public String getJarPath() {
        return jarPath;
    }

    public void setJarPath(String jarPath) {
        this.jarPath = jarPath;
    }

    public String getJarTempDir() {
        return jarTempDir;
    }

    public void setJarTempDir(String jarTempDir) {
        this.jarTempDir = jarTempDir;
    }
}
